package com.collect.senegal.zhiBean.zhiReceive;

import android.text.TextUtils;

import com.collect.senegal.zhiUtils.StringUtil;

import java.io.Serializable;

public class ZHIRPerfermanceGroupDailyEntity implements Serializable {

    private String sysLoginName;
    private String total;
    private String task;

    private String completed;
    private String rate;

    public String getSysLoginName() {
        return StringUtil.safeString(sysLoginName);
    }

    public void setSysLoginName(String sysLoginName) {
        this.sysLoginName = sysLoginName;
    }

    public String getTotal() {
        return StringUtil.safeString(total);
    }

    public int getTotalInt() {
        try {
            String gtotal = getTotal();
            if (TextUtils.isDigitsOnly(gtotal)) {
                return Integer.parseInt(gtotal);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return 0;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public String getTask() {
        return StringUtil.safeString(task);
    }

    public void setTask(String task) {
        this.task = task;
    }

    public String getCompleted() {
        return StringUtil.safeString(completed);
    }

    public void setCompleted(String completed) {
        this.completed = completed;
    }

    public String getRate() {
        return StringUtil.safeString(rate);
    }

    public void setRate(String rate) {
        this.rate = rate;
    }

}
